package com.sync.syncmasterdata.customer.pojo.oa;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Data
@Component
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement(name = "root")
public class CustomerOaRoot {

    @XmlElement(name="header")
    private CustomerOaRootHeader header;


    @XmlElement(name="search")
    private CustomerOaRootSearch search=new CustomerOaRootSearch();

    @Autowired
    @XmlElement(name="data")
    private CustomerOaData data;

}


@XmlRootElement(name = "search")
class CustomerOaRootSearch {
    @XmlElement(name="condition")
    private String condition="";
    @XmlElement(name="right")
    private String right="N";
}
